import scroll from "better-scroll"
export default {
  data(){return{
    scroll:null
  }}
  ,mounted(){
    this.scroll=new scroll(this.$refs['wrapp'],{
      scrollY:true
     ,click:true
     ,probeType:0
     ,pullUpLoad:false
     ,mouseWheel:true
    })
  }
  ,methods:{
    refresh(){
      this.scroll && setTimeout(()=>this.scroll.refresh(),50)
    }
  }
}